﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true"
    CodeBehind="HSYXRK_BASE_List.aspx.cs" Inherits="DomMgmtSystem.View.HSYXRK_BASE_List" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <table cellpadding="0" cellspacing="0" class="table table-bordered table-hover" width="100%">
        <tr>
            <td class="tableleft" style="width: 150px">
                摄区编码：
            </td>
            <td>
                <asp:TextBox ID="txtCSQDH" runat="server" Width="150px"></asp:TextBox>
            </td>
            <td class="tableleft" style="width: 150px">
                摄区名称：
            </td>
            <td>
                <asp:TextBox ID="txtCSQMC" runat="server" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tableleft" style="width: 150px">
                入库日期：
            </td>
            <td>
                <div id="Div1" name="datetimepicker" class="input-append date">
                    <asp:TextBox ID="txtDTRKRQStart" runat="server" Width="150px"></asp:TextBox><span
                        class="add-on"><i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
                    </span>
                </div>
                -<div id="Div2" name="datetimepicker" class="input-append date">
                    <asp:TextBox ID="txtDTRKRQEnd" runat="server" Width="150px"></asp:TextBox><span class="add-on"><i
                        data-time-icon="icon-time" data-date-icon="icon-calendar"></i> </span>
                </div>
            </td>
            <td class="tableleft" style="width: 150px">
                用户名：
            </td>
            <td>
                <asp:TextBox ID="txtCREATE_USER" runat="server" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" colspan="4">
                <asp:Button ID="btnSearch" runat="server" Text="查 询" OnClick="btnSearch_Click" class="btn btn-primary" />
                <asp:Button ID="btnExcel" runat="server" Text="导 出" class="btn btn-primary" 
                    onclick="btnExcel_Click" />
            </td>
        </tr>
    </table>
    <table class="table table-bordered">
        <tr>
            <td colspan="4">
                摄区数量：<asp:Label ID="lbCount" runat="server" Text="Label"></asp:Label>&nbsp;&nbsp;&nbsp;
                数据量总量（TB）：<asp:Label ID="lbFSJL" runat="server" Text="Label"></asp:Label>&nbsp;&nbsp;&nbsp;
                相片数：<asp:Label ID="lbNSMPS" runat="server" Text="Label"></asp:Label>&nbsp;&nbsp;&nbsp;
                面积：<asp:Label ID="lbSQMJ" runat="server" Text="Label"></asp:Label>平方千米
            </td>
        </tr>
    </table>
    <!--数据列表-->
    <table class="table table-bordered table-hover" width="100%">
        <thead>
            <tr>
                <th style="display: none">
                    序号
                </th>
                <th>
                    摄区编码
                </th>
                <th>
                    摄区名称
                </th>
                <th>
                    摄区面积(平方千米)
                </th>
                <th>
                    硬盘套数
                </th>
                <th>
                    每套的硬盘数量
                </th>
                <th>
                    接收日期
                </th>
                <th>
                    入库日期
                </th>
                <th>
                    航摄单位
                </th>
                <th>
                    流水号
                </th>
                <th>
                    创建用户
                </th>
                <th>
                    创建日期
                </th>
                <th>
                </th>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <ItemTemplate>
                    <tr>
                        <td style="display: none">
                            <%--序号--%><%# Eval("NID")%>
                        </td>
                        <td>
                            <%--摄区编码--%><%# Eval("CSQDH")%>
                        </td>
                        <td>
                            <%--摄区名称--%><%# Eval("CSQMC")%>
                        </td>
                        <td>
                            <%--摄区面积(平方千米)--%><%# Eval("SQMJ")%>
                        </td>
                        <td>
                            <%--硬盘套数--%><%# Framework.EnumHelper.EnumDescription((Framework.Common.NYPTS) Convert.ToInt32(Eval("NYPTS")))%>
                        </td>
                        <td>
                            <%--每套的硬盘数量--%><%# Eval("NYPS")%>
                        </td>
                        <td>
                            <%--接收日期--%><%# Eval("DTJSRQ", "{0:yyyy-MM-dd}")%>
                        </td>
                        <td>
                            <%--入库日期--%><%# Eval("DTRKRQ", "{0:yyyy-MM-dd}")%>
                        </td>
                        <td>
                            <%--航摄单位--%><%# Eval("CHSDW")%>
                        </td>
                        <td>
                            <%--流水号--%><%# Eval("LSH")%>
                        </td>
                        <td>
                            <%--创建用户--%><%# Eval("CnickName")%>
                        </td>
                        <td>
                            <%--创建日期--%><%# Eval("CREATE_DATE", "{0:yyyy-MM-dd}")%>
                        </td>
                        <td>
                            <%# "<a href='HSYXRK_BASE.aspx?baseID=" + Eval("NID") + "&IsNew=false&view=true'>查看</a>"+(Eval("CREATE_USER").ToString()==DomMgmtSystem.CommonCode.CurUser.CUSERNAME?("&nbsp;<a href='HSYXRK_BASE.aspx?baseID=" + Eval("NID") + "&IsNew=false'>编辑</a>&nbsp;"):"")%><asp:LinkButton
                                ID="lbDel" runat="server" OnClientClick="javascript:if(confirm('确定要删除吗？'))return true;else  return false;"
                                CommandName="Del" CommandArgument='<%#Eval("NID") %>' Visible='<%#Eval("CREATE_USER").ToString()==DomMgmtSystem.CommonCode.CurUser.CUSERNAME %>'>删除</asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>
    <!--分页列表-->
    <div class="inline pull-right page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="569px" UrlPaging="True"
            TextBeforePageIndexBox="转到" TextAfterPageIndexBox="页" SubmitButtonText="Go" ShowPageIndexBox="Never"
            PrevPageText="上一页" PageSize="14" OnPageChanging="AspNetPager1_PageChanging" NumericButtonTextFormatString="[{0}]"
            NumericButtonCount="5" NextPageText="下一页" LastPageText="尾页" ForeColor="Black"
            FirstPageText="首页" CurrentPageButtonTextFormatString="[{0}]" ButtonImageAlign="Middle">
        </webdiyer:AspNetPager>
    </div>
    <%--</ContentTemplate>
            </asp:UpdatePanel>--%>
</asp:Content>
